home *** CD-ROM | disk | FTP | other *** search
-
- const pi = 3.1415926535897932384626433832795
- const SW_HIDE =0
- const SW_SHOWNORMAL =1
- const SW_NORMAL =1
- const SW_SHOWMINIMIZED =2
- const SW_SHOWMAXIMIZED =3
- const SW_MAXIMIZE =3
- const SW_SHOWNOACTIVATE =4
- const SW_SHOW =5
- const SW_MINIMIZE =6
- const SW_SHOWMINNOACTIVE =7
- const SW_SHOWNA =8
- const SW_RESTORE =9
- const SW_SHOWDEFAULT =10
- const SW_FORCEMINIMIZE =11
- const SW_MAX =11
-
-
-
- const ID_LM_HELIOCENTRIC = 33193
- const kModePopupButton = 530
- const WM_COMMAND = &H111
-
- public theTime
- public Direction
- public Location
- public Filters
-
-
-
- sub SetHelioCentricView(ID)
- on error resume next
- set ws = getwindow(ID)
- set camera = ws.camera
- set locpanel = camera.Location
- locpanel.Sendmessage WM_COMMAND , kModePopupButton ,ID_LM_HELIOCENTRIC
- end sub
-
-
- sub UpdateWindows
- on error resume next
- for i = 1 to getWindowCount()
- set w = getWindow(i)
- w.UpdateSky()
- next
- DoEvents
- end sub
-
- sub CloseAllTimers
- on Error resume next
- for i = 1 to getWindowCount()
- set wnd = getWindow(i)
- Set Camera = wnd.camera
- Set theTime = camera.time
- Set Direction = camera.Direction
- Set Location = camera.Location
- theTime.Stop
- Location.StopDistance
- Location.StopLongitude
- Location.StopLattitude
- Direction.ZoomStop
- Direction.DekStop
- Direction.RaStop
- Direction.SlopeStop
- next
- end sub
-
- sub CheckTime
- dim w
- dim camera
-
- if(IsObject(theTime)) then
-
- else
- set w = getWindow(activeWindow)
- Set camera = w.camera
- Set theTime =camera.Time
- end If
-
- end sub
-
- sub CheckDirection
- dim wnd
- dim camera
-
- if(IsObject(Direction)) then
-
- else
- set wnd = getWindow(activeWindow)
- Set camera = wnd.camera
- set Direction =Camera.Direction
- end if
- end sub
-
-
- sub CheckLocation
- dim wnd
- dim camera
-
- if(IsObject(Location)) then
-
- else
- set wnd = getWindow(activeWindow)
- Set camera = wnd.camera
- set Location =Camera.Location
- end if
- end sub
-
- sub CheckFilters
- dim wnd
- dim camera
- if(IsObject(Filters)) then
- else
- set wnd = getWindow(activeWindow)
- Set Filters = wnd.Filters
- end if
- end sub
-
-
- sub MainwndMsg ( command,wparam,lparam)
- set mainwnd = MainWindow()
- mainwnd.SendMessage clng(command), clng(wparam), clng(lparam)
- mainwnd=null
- end sub
-
- sub SafeCloseGTour
- WaitForMedia
- CloseTextWindows
- end sub
-
-
- 'msgbox "loaded!!!"
-